package com.bupt.dao;

import com.bupt.bean.DeviceNetwork;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface DeviceNetworkRepository extends JpaRepository<DeviceNetwork,String>, JpaSpecificationExecutor<DeviceNetwork> {


    DeviceNetwork findByDeviceNetworkId(Integer deviceNetworkId);


    DeviceNetwork findByDeviceId(Integer deviceId);

    void deleteByDeviceId(Integer deviceId);
}
